<?php
	define ("HOST", "localhost");//the host you want to connect to.
	define ("USER", "root");//the database username.
	define ("PASSWORD", "");//the database password.
	define ("DATABASE", "qlanh");//the database name.
	define ('BASE_URL','http://locahost:81/WebUpAnh');

	$con = mysql_connect(HOST,USER,PASSWORD);
	if (!$con)
	{
		echo "Ket noi khong thanh cong!";
	}
	else
	//pick the database
	mysql_select_db(DATABASE,$con);
	// set UTF-8
	mysql_query("SET NAMES 'utf8'", $con);
?>